package panda.server.data;

import panda.client.enumerations.CardRarity;
import panda.client.enumerations.MagicSet;

@SuppressWarnings("serial")
public class TokenData extends CardData {
	public TokenData() {
		/* empty constructor for GWT serialization */
	}
	
	public TokenData(MagicSet set, String name, String castingCost, String type, String bodyText,
			CardRarity rarity, String illustrator, int id) {
		super(set, name, castingCost, type, bodyText, rarity, illustrator, id);
	}

	public String toString() {
		String type = this.getType();
		String[] typeSplit = type.split(" ");
		String powerToughness = typeSplit[typeSplit.length - 1];

		return this.getName() + " [" + this.getCastingCost() + "] " + powerToughness + " from "
				+ this.getMagicSet().getName();
	}
}